Polarization domains in nonlinear optics