On the sliding mode control of mechanical systems.