Van der Waals density functional study of the energetics of alkali metal intercalation in graphite