Text this: Reactive power compensation and harmonic distortion control in electric traction systems