On safety of lithium-ion cells