Measuring electrical impedance or conductance of a portion of the body