On the Mechanisms of Chemical Intercalation of Lithium in Electrode Materials