Analysis of Gas Composition Inside Lithium-Ion Batteries