Nondestructive separation of residual stress and composition gradients in thin films by angle- and energy-dispersive X-ray diffraction. II. Experimental validation