Study of lateral polysilicon PN diodes C–V characteristics: Modeling and experiments