Proximal lower limb muscle energetics and the adaptation of segment elevation angle phasing for obstacle avoidance.