Long time asymptotics of unbounded additive functionals of Markov processes