The electrostatic field at a graphite surface and its effect on molecule-solid interactions