First-principles analysis of spin-disorder resistivity of Fe and Ni