Theory for a gas composition sensor based on acoustic properties.