Potential density of rational points for K3 surfaces over function fields