THE ROLE OF ENERGY STORAGE IN DISTRIBUTED GENERATION