Optimal Sizing of an rSOC-Based Renewable Microgrid