Magnetic or electromagnetic friction