operating with magnetic or electric fields produced or modified by the object or by the detecting device