Optimization of DC, AC, and Hybrid AC/DC Microgrid-Based IoT Systems: A Review