PN Junction Diodes:Key Concepts, Function,and Applications