Ab initio theory of many-body interaction and phonon frequencies of rare-gas crystals under pressure in the model of deformable atoms