First-Principles Study Of Ferroelectric Oxide Nanostructures