Thermodynamic studies on the Mg-Ga system