Thermal residual stress analysis for in situ and post-consolidated composite rings