Seol mar théacs é seo: THEORY OF COMPATIBLE DOMAIN ARRANGEMENTS IN FERROELECTRIC THIN FILMS