Coarse-grained modeling of the metabolism of Saccharomyces cerevisiae