Filter Transients onboard DC Rolling Stock and Exploitation for the Estimate of the Line Impedance