The determination of residual stresses in plastic pipe and their role in fracture