Performance enhancements of polymer-matrix composites by changing of residual stresses