A review of the primary-control techniques for the islanded microgrids