Decoherence of transported spin in multichannel spin-orbit-coupled spintronic devices : Scattering approach to spin-density matrix from the ballistic to the localized regime