How do semiconductor devices, such as diodes and transistors, operate at a fundamental level, and what are the theoretical principles governing their behavior in electronic circuits, including concepts like band theory, carrier transport, and junction behavior?