Revision and extension of the standard laboratory technique for X-ray diffraction measurement of residual stress gradients