Measure capacitor resistance using a digital bridge