A sensitive continuous and discontinuous photometric determination of oxygen, carbon dioxide, and carbon monoxide in gases and fluids