A direct approach for the solution of nonlinear optimal control problems with multiple delays subject to mixed state-control constraints