Kohn-Sham energy