Thermo-viscoplastic residual stresses in metal matrix composites