different types of diodes and their applications