Relationship between energy storage and wind power and photovoltaics