Strain incompatibility and residual strains in ferroelectric single crystals