Resonant x-ray spectroscopy of uranium intermetallics at the M4,5 edges of uranium