The Role of the Trunk in the Stability and Energetics of Locomotion