explain how the rate of photosynthesis or cellular respiration can be measured using products or reactants.