Remaining Useful Life of Lithium-ion Batteries as a Function of the Joule Effect