Composite Materials in Piping Applications: Design, Analysis and Optimization of Subsea and Onshore Pipelines from FRP Materials