Metallographic preparation of lithium-ion batteries