Ranges of motion as basis for robot-assisted poststroke rehabilitation