Physics of Optoelectronics