The rational design of selective electrocatalysts for renewable energy devices