Batteries for storing electricity