Charge–discharge stability of graphite anodes for lithium-ion batteries