Text this: Detection of insulation defects in the wire through measuring changes in its capacitance