Thermochemical investigation of Sm-Mg alloys