Lattice Structure of Ionic Compounds