A Stochastic Optimal Regulator for a Class of Nonlinear Systems