The impact of grid structure on energy storage