On the estimation of joint kinematics during gait