Riemann existence theorem and construction of real algebraic curves