Theory of Homojunction Bipolar Transistors