Sliding mode control of the third order system with state constraints