calculate ess on the separate chains