Reduction of NAD(P)+ by electrochemically driven FADH2 and FMNH2