Volume dependence of phonon frequencies