Stochastic stability of invariant measures