Enzymatic bioreactor for simultaneous electrosynthesis and energy production