A method of optimal control of non-linear stochastic systems with non-quadratic criteria†