Mechanism of gas build-up in a Li-ion cell at elevated temperature