OPTIMAL ALLOCATION OF DISTRIBUTED ENERGY STORAGE SYSTEMS TO