Development of a Fuzzy-Logic-Based Energy Management System for a Multiport Multioperation Mode Residential Smart Microgrid | Synapse