Modelling of dielectric hysteresis loops in ferroelectric semiconductors with charged defects