Towards the Control of Heat Exchangers Based on Thermodynamic Principles