HOW ARE ENERGY STORAGE DEVICES CONNECTED TO THE GRID