First-principles calculations of the elastic, phonon and thermodynamic properties of Al12Mg17