Coherent control with a short-wavelength free-electron laser