Permutations polynomials of the form G(X)k − L(X) and curves over finite fields