Error compensation and error measurement of current transformers under transient and steady state conditions