Enhanced multiscale modeling of macroscopic and microscopic residual stresses evolution during multi-thermo-mechanical processes