Predicting the yield of nutrients from microbial metabolism in the rumen