INTEGRATING ENERGY STORAGE INTO SMART GRIDS