Nonlinear Schrödinger Equation for Dispersive Media