how to calculate strain from xrd data