OPTIMAL SIZING OF BATTERY ENERGY STORAGE SYSTEMS AND RELIABILITY