On the 16th Hilbert problem for limit cycles on nonsingular algebraic curves