Shift and deformation of the hysteresis curve of ferroelectrics by defects: An electrostatic model