Interplay of intrinsic and extrinsic mechanisms to the spin Hall effect in a two-dimensional electron gas