Understanding Modern Transistors and Diodes