a function to estimate the integrated autocorrelation time and ACF