HIL Testing for Efficient and Resilient Operation of Inverter-Dominated Microgrids