Pyrolysis and catalysis of dimethyl ether in a flow reactor