A Bayesian method for construction of Markov models to describe dynamics on various time scales