Avoiding asymptotic divergence of the potential from orbital- and energy-dependent exchange-correlation functionals