Spin Manipulation In Two-Dimensional Electron And Hole Gases