THE ROLE OF ENERGY STORAGE DEVICES IN MICROGRIDS