The Al-Er-Mg ternary systems. Part II: thermodynamic modeling