Syntrophy emerges spontaneously in complex metabolic systems