Microscopic Modeling of Solid-State Quantum Devices