Thermal method of gas separation with micro-pores