Curie–Weiss-type law for the strain and stress effects on the dielectric response of ferroelectric thin films