Reconstruction and evolution of gapless metabolic networks