Spin waves in metallic iron and nickel measured by soft x-ray resonant inelastic scattering