“Smart” lithium-ion battery would warn users if it is going to ignite