Understanding How the Environment Around Active Sites Affects Electrocatalytic Activity