Mechanisms for human balancing of an inverted pendulum using the ankle strategy