Diodes Explained: Understanding Forward and Reverse Bias