Cycle-life model for graphite-LiFePO4 cells