Understanding radio polarimetry. I. Mathematical foundations | Synapse