Planning the deployment of energy storage systems to integrate high shares of renewables