Thermodynamic approach to the structural stability of process plants