Text this: A Generalization of the Cauchy-Schwarz Inequality and Its Application to Stability Analysis of Nonlinear Impulsive Control Systems