Effective permittivity of a nanostructured film consisting of elliptic ferroelectric grains