Nanostructured ferroelectric films