Temporal and thermodynamic irreversibility in production theory