Unified First-Principles Study of Gilbert Damping, Spin-Flip Diffusion, and Resistivity in Transition Metal Alloys