The role of the nonlinear Schrödinger equation in nonlinear optics