Allocation of Potentially Environmentally Hazardous Sections on Pipelines