Segmental energy contributions in walking and running