Soluble Polymers with Intrinsic Porosity for Flue Gas Purification and Natural Gas Upgrading