Stability of nonlinear impulsive partial differential equations