Second-order conditions for optimal control problems with mixed state-control constraints