Draw the electronic configuration of ... for the formation of ions in some ionic compounds – magnesium oxide and calcium chloride.