Experimental validation of a sliding mode controller for permanent-magnet synchronous motors