Residual stress measurement and modeling by the initial strain distribution method: Part I - Theory