Stability Enhancement of an Autonomous Microgrid using an Internal Model-based Controller