Solid-state phase equilibria in the Mg corner of the MgGdSm phase diagram