Spin Polarization of the Photoelectrons and Photon Polarization of X-Ray Absorption: Spectroscopy and Magnetometry