On modeling of phase transformations in ferroelectric materials