Electromagnetic levitation apparatus for investigations of the phase selection in undercooled melts by energy-dispersive x-ray diffraction