Multifunctional Optoelectronic Device Based on an Asymmetric Active Layer Structure