Flexible and Low-Cost Emulation of Control Behaviors for Testing and Teaching of AC Microgrid | Synapse