Effect of moisture gradients on process induced deformation