Forming Crystals: The Science Behind Ionic Compounds