The topology of 2-dimensional real algebraic sets