Conjugated porous polymers as precursors for electrocatalysts and storage electrode materials.