Resonant X-ray magnetic scattering from the twisted states of an Fe/Gd multilayer