Understanding the local chemical environment of bioelectrocatalysis