Electrochemical measurement of intraprotein and interprotein electron transfer