Optical implementation of neural networks with wavelength-encoded bipolar weight using bacteriorhodopsin