A sliding mode controller for actuator failure compensation