Insertion of alkali atoms into graphite enhanced by cointercalation with alkylamine: mechanism from density functional theory