Study of the displacement of floating diamagnetic bodies by a magnetic field