Names and formulas of ionic compounds