Vibration control and calculating inverse dynamics of the rigid-flexible two-link manipulator T-R