Adaptive Protection Algorithms for Smart Distribution Systems: Hardware-in-the-Loop Testing and Validation