Potassium intercalation in graphite: A van der Waals density-functional study