Diode forward bias and reverse bias