Correlations between magnetic properties and bond formation in Rh–MgO(001)