Proving ergodicity via divergence of ergodic sums