Riemann hypothesis for curves over finite fields