Formal asymptotic solution of a singularly perturbed nonlinear optimal control problem