Investigation of Ester- and Amide-Linker-Based Porous Organic Polymers for Carbon Dioxide Capture and Separation at Wide Temperatures and Pressures.