Introduction to spectropolarimetry