Time-resolved resonant soft x-ray diffraction with free-electron lasers: Femtosecond dynamics across the Verwey transition in magnetite