Design and validation of an upper extremity kinematic model for application in stroke rehabilitation