IAM_mcmc_error function

Internal function used to compute the MCMC Error as a batch mean.