Relation between the ion-ion potential and phonon spectra in alkali metals