Ionic Compounds: Applications of Chemistry to Mineralogy