Title: Modelling the PIN diode for circuit simulation