Polarization of light in nonlinear optics