Locating faults in cables, transmission lines, or networks