Space-charge Effect on Electroresistance in Metal-Ferroelectric-Metal capacitors