Understanding Potential-dependent Competition Between Electrocatalytic Dinitrogen and Proton Reduction Reactions