what is the net electrical charge on a magnesium ion that is formed when a neutral atom loses two electrons?