Simultaneous synthesis of mass‐exchange and regeneration networks