Self-tuning of a preshaping input method for vibration control of flexible structures