On the thermoeconomic approach to the diagnosis of energy system malfunctions: Part 2. Malfunction definitions and assessment