X-ray ferromagnetic resonance spectroscopy