Electrons and holes in semiconductors with applications to transistor electronics