Capacitance in a p–n junction diode structure: (a) schematic view; (b) equivalent circuits of a p–n junction capacitor.