Building a safer lithium-ion battery