EspressoSystemInterface: energy calculation