Magnetic levitation of superconducting bars