Effects of thermal residual stresses on effective elastoplastic behavior of metal matrix composites