Measurement of nitrogen fixation