Spin Glass Theory of Interacting Metabolic Networks