Crystal structure of the CorA Mg2+ transporter