Functional determinants and Casimir energy in higher dimensional spherically symmetric background potentials