Sizing and Siting of Large-Scale Batteries in Transmission Grids to Optimize the Use of Renewables