Voxel stress optimizer (VSO) framework for residual stress mitigation in wire-arc additive manufacturing