Influence of quadrupolar deformability on phonon dispersion in silver and copper halides