A Real Time Adaptive Charging Approach for Cycle Life Extension of Li Ion Cells