Thermochemical investigation of the magnesium-samarium alloys