N-rich porous organic polymers based on Schiff base reaction for CO2 capture and mercury(II) adsorption.