A Chebyshev technique for the solution of optimal control problems with nonlinear programming methods