How to measure the short-circuit resistance of a capacitor