Gas-balancing adsorption strategy towards noble-metal-based nanowire electrocatalysts