Method for modelling a system as a Markov chain used in reliability engineering for availability and reliability analysis