Text this: Enhanced Microgrid Reliability Through Optimal Battery Energy Storage System Type and Sizing