Analytical And Numerical Design of Buried Pipelines with Flexible Joints