Calibration of x-ray measurement of strain