Structural and functional characterization of the N-terminal domain of the yeast Mg2+ channel Mrs2