Mechanism of lithium insertion in hard carbons prepared by pyrolysis of epoxy resins