Text this: Thermodynamic model of capital extraction in economic systems