Synthesis of combined heat and reactive mass-exchange networks