Flexible opto-electronic AND/NAND logical gate circuit using lightwave interference and balanced photodetection | Synapse