Markov chain modeling and simulation of breathing patterns