Exact solution of the N-dimensional generalized Dirac-Coulomb equation