Estimation of film-electrode contact resistance and domain switching time from ferroelectric polarization-voltage hysteresis loops