OPTIMAL SIZING OF BATTERY ENERGY STORAGE SYSTEM