APPLICATION OF ENERGY STORAGE IN MICROGRIDS