Electronic properties of molecules and surfaces with a self-consistent interatomic van der Waals density functional.