Nonlinear Impulsive and Hybrid Dynamical Systems