Intercalation reactions and carbide formation in graphite-lithium system