using diodes blocking reverse current flow