The relationship between renewable energy and energy storage