Simulation of hysteresis loops for polycrystalline ferroelectrics by an extensive Landau-type model