Gas-analysis apparatus