Failure prediction and availability-based maintenance planning of gas transmission pipelines