Enzyme cofactor regeneration for bioelectrocatalysis