VUV and X-ray free-electron lasers: The technology and its scientific promise