A Review of Energy Management and Power Management Systems for Microgrid and Nanogrid Applications | Synapse