On the systematics of phase equilibria in complex magnesium-rare earth systems: Gd-Y-Mg system