An introduction to junction transistor theory