Self-consistent single-particle approximation to nuclear state densities at high excitation energy