Free-electron laser design for four-wave mixing experiments with soft-x-ray pulses.