Measuring impedance of element or network through which a current is passing from another source