Resonant inelastic X-ray scattering from magnetic systems: Mn in MnFe2O4