Characterization of the effective electrostriction coefficients in ferroelectric thin films