New breakthrough could make batteries safer—without compromising power, charge