Tuning the Spin Hall Effect in a Two-Dimensional Electron Gas