Chemical Formulas of Ionic Compounds