Source: http://cedric.koeniguer.free.fr/polytech/elec/documents/TD/td_diode.pdf