Spin-orbit interactions in dilute magnetic alloys. I. Induced spin anisotropy and its effect on the electrical resistance