Effect of space charge on the polarization hysteresis characteristics of monolithic and compositionally graded ferroelectrics