Origins of metabolic diversity: substitution of homologous sequences into genes for enzymes with different catalytic activities.