Circuits using or taking into account line impedance to shape the discharge pulse