Experimental investigation of strain distributions and polarization in lead-based and lead-free ferroelectrics