Polarization in spectral lines