Supervisory Control and Power Management of an AC Microgrid