Residual stress effects on the performance of pressurised thermoplastic pipe