Active filtering of traction drives fed by DC contact line