Modelling and control of mechanical systems with stick-slip friction