Coercive field dependence of the grain size of ferroelectric films