K-theory for ring C*-algebras attached to function fields