Thermally self-sufficient process for single-step coproduction of methanol and dimethyl ether by CO2 hydrogenation