Modelling flexible multi-link robots for vibration control: numerical simulations and real-time experiments