Motion prediction and inverse dynamics for human upper extremities