Spin-dependent scattering and resistivity of magnetic metals and alloys