Measurement of the quality of self-healing capacitors