using electrical currents in the sample itself