How are residual gases measured?