using electrostatic or magnetic effects