Explain how the metabolic rate of an animal can be determined by measuring the rate of oxygen consumption.