Filter transients onboard DC rolling stock and exploitation for the estimate of the line impedance