Existence of invariant measures for Markov processes