Impulsive Differential Equations with Applications to Infectious Diseases