Optimal Configuration of Hybrid Solar-Wind Distributed Generation Capacity in a Grid-Connected Microgrid