Carbazole- and thiophene-containing conjugated microporous polymers with different planarity for enhanced photocatalytic hydrogen evolution.