Energetics and mechanics of terrestrial locomotion: Muscles, pendulums and springs