Optimal sliding mode flight control