Proving ergodicity via divergence of time averages