Application of van der Waals density functional to an extended system: adsorption of benzene and naphthalene on graphite.