Factors that affect capacitor resistance