A new approach to Li-ion battery modeling