Diffraction analysis of strongly inhomogeneous residual stress depth distributions by modification of the stress scanning method. I. Theoretical concept