Control of welding residual stress for dissimilar laser welded materials