Locomotor function and the evolution of the primate pelvis