Magnetic or electrostatic separation of solid materials from solid materials or fluids; separation by high-voltage electric fields