Solid state devices a quantum physics approach