A markovian model as a tool for optimization of maintenance planning on the railway lines