Spin transport in semiconductors manipulated by extrinsic factors