Waves And Fields In Optoelectronics