Electrostatic energy and van der Waals forces