Energy balance for analysis of complex metabolic networks.