Use of dielectric functions in the theory of dispersion forces