On solving stiff equations with reference to simulating ruminant metabolism