Modeling the evolutionary emergence of diverse microbial metabolisms