Thermodynamic bounds and selection of technologies in the petrochemical industry