Effect of an uniaxial single-ion anisotropy on the quantum and thermal entanglement of a mixed spin-(1/2, S) Heisenberg dimer