Improving the accuracy of current transformers through harmonic distortion compensation