Thermodynamic analysis of regulation in metabolic networks using constraint-based modeling