Microstructural modeling of ferroelectric material behavior