Light emission properties of a discharge induced in a gas flow by terahertz waves in the vacuum and extreme ultraviolet range