Modeling the bipolar transistor