Verwey transition in a magnetite ultrathin film by resonant x-ray scattering