Determination of internal stresses in cyclically deformed metals