Design, calibration and calculation for flow-through respirometry systems