Microgrid Optimization with Metaheuristic Algorithms—A Review of Technologies and Trends for Sustainable Energy Systems | Synapse