Mathematical modeling of hysteresis loops in ferroelectric materials