OPTIMAL LOCATION SELECTION AND OPERATION OF BATTERY ENERGY STORAGE