Theory of Semiconductor Quantum Devices