Size effects in nanostructured ferroelectrics