Studies on some properties of ionic crystals in perfect lattices and lattices with substitutional defects