X-ray magneto-optical polarization spectroscopy: an analysis from the visible region to the x-ray regime.