Smoothness of solutions for boundary value problems with impulse effects, II