Size effects in nanostructured ferroelectric films