Magnesium ion atomic diagram