The simplex method for nonlinear sliding mode control