The Al-Er-Mg ternary system Part II: Thermodynamic modeling