An optimal multistage charge strategy for commercial lithium ion batteries