Analyzing microporosity with vapor thermogravimetry and gas pycnometry