A preshaping input method for vibration control of a single link flexible robot: theoretical modelling and experimental validation