Thermal stability and flammability of electrolytes for lithium-ion batteries