Engineers solve a mystery on the path to smaller, lighter batteries