Robust near optimal control via unchattering sliding mode control