Soft x-ray resonant magneto-optical constants at the Gd M-4,M-5 and Fe L-2,L-3 edges