Real-Time Hardware-in-The-Loop Implementation of Protection and Self-Healing of Microgrids