An FPGA-based Digital Real-Time Simulator for Hardware-In-The-Loop Testing of Traveling-Wave Relays