Residual stress gradients in electroplated nickel thin films