Working principle of batteries with focus on Lithium-ion based batteries.