FLASH—from accelerator test facility to the first single-pass soft x-ray free-electron laser