Avoidance and escape components of leg position learning in the prothoracic and mesothoracic ganglia of the cockroach, P. americana