Operation of a free-electron laser from the extreme ultraviolet to the water window