Sliding mode control in electro-mechanical systems