Here’s why the batteries in your gadgets start to bloat over time