The Optimization of Anion Exchange Membrane Fuel Cells and Water Electrolyzers by Varying Catalyst Design and Changing Gas Inlet Composition