Battery systems for wind and hydropower