Lithium batteries, used in electric vehicles, have been at the root of a headline-grabbing rash of fires in recent years.