Contribution of first-principles energetics to Al–Mg thermodynamic modeling