Text this: Kinematic and dynamic synthesis of a balance training machine for rehabilitation