Validity of the dielectric approximation in describing electron-energy-loss spectra of surface and interface phonons in thin films of ionic crystals.