In the chemical formula for an ionic compound, which item is written first?