UV spectrophotometry for monitoring toxic gases