Techniques to understand computer simulations: Markov chain analysis