Measurement of energy efficiency based on economic foundations