Microscopically motivated modeling of ferroelectric materials