Scalable control of islanded microgrids