Dependence of the strength of van der Waals interactions on the details of the dielectric response variation