Real-time kinematic modeling and prediction of human joint motion in a networked rehabilitation system