Energy storage for the grid