A pulse generation circuit for improved measurement of current transients in ferroelectric thin films