Electrical and capacitive methods for detecting degradation in wire insulation