All-optical logic gates with bacteriorhodopsin films