What can be used to measure the rate of photosynthesis