OPTIMAL SIZING OF BATTERY ENERGY STORAGE SYSTEM IN SMART MICROGRID