Compressibility and absorption frequency of ionic crystals