Solid State and Quantum Theory for Optoelectronics