Modelling an Impedance Relay using a Real Time Digital Simulator