Thermodynamic Input-Output Analysis Of Economic And Ecological Systems For Sustainable Engineering