Ferroelectric nanostructures