State Constraints in Impulsive Control Problems: Gamkrelidze-Like Conditions of Optimality