Residual stress-induced warping in direct metal solid freeform fabrication