Rational design and synthesis of a porous, task-specific polycarbazole for efficient CO2 capture.