Residual stress and localized lattice rotation under fatigue loading