Shell energies of rapidly rotating nuclei