First-principles study of ternary graphite compounds cointercalated with alkali atoms (Li, Na, and K) and alkylamines towards alkali ion battery applications