An analysis of the energy production efficiency of countries