A preshaping input method for the vibration control of flexible robot links