using magnetic or electrostatic fields