Revision and extension of the standard laboratory technique for XRD measurement of residual stress gradients