Risk-Based Maintenance Planning Model for Oil and Gas Pipelines