On the thermoeconomic approach to the diagnosis of energy system malfunctions: Part 1: the TADEUS problem