Probabilistic approach for the optimization of pipework inspection and maintenance