Control of Spin Relaxation in Disordered Quantum Wells and Nanowires