Size Optimization of a Microgrid with Large Penetration of PV and Battery Energy Storage System