Simulation of electronic measurement transformers