How Do Ionic Compounds Form Crystal Lattices