Designing the gas, liquid, and electron pathways for electrocatalytic gas-involving systems