Solution of state-constrained optimal control problems through quasilinearization