The topology of real algebraic curves