OPTIMAL INTEGRATION OF DISTRIBUTED ENERGY STORAGE DEVICES IN SMART