Optimal Design and Planning of Hybrid AC/DC Microgrid