operating with magnetic or electric fields produced or modified either by the surrounding earth formation or by the detecting device