First principles modeling of ferroelectric oxide nanostructures.