Sub-surface residual stress gradients: advances in laboratory XRD methods