In situ characterisation of welds by X-ray diffraction