Control over multifunctionality in optoelectronic device based on organic phototransistor.