Estimating velocities and accelerations of animal locomotion