Measurement of gas and vapor adsorption