Graded composition and structure in nanocrystalline Ni–Co alloys for decreasing internal stress and improving tribological properties