ALLOCATION AND SIZING OF BATTERY ENERGY STORAGE SYSTEM FOR PRIMARY