The measurement of stress by X-rays