Characterization of porous polymers by polar strength and selectivity