Catastrophic thermal runaway in lithium batteries