Autonomous microgrid