Alloying behaviour of mg with transition elements and rare earth metals (R): the R-T-Mg systems (T=Ni, Cu, Ag, Au)