Accurate van der Waals coefficients from density functional theory