Constraint-based analysis of substructures of metabolic networks