Types of Diodes and Their Applications