Text this: Study of residual stress in a thin platinum layer by means of nondestructive x-ray diffraction