Energy Management System in Microgrids: A Comprehensive Review | Synapse