Mechanics and energetics of animal locomotion