Pixel-by-pixel analysis yields insights into lithium-ion batteries