Ionic contributions to lattice instabilities and phonon dispersion in La2CuO