Optoelectronic logic functions using optical bias controlled SiC multilayer devices