Hardware-in-the-Loop Simulation of Distance Relay Using RTDS