Diophantine subsets of function fields of curves