Optimality Conditions for Convex State Constrained Optimal Control Problems with Discontinuous States