Image potential states from the van der Waals density functional.