Transformations of Markov processes