Renewables, energy storage and the future of smart cities