State The Function Of A Diode