One-pot cascade syntheses of microporous and mesoporous pyrazine-linked covalent organic frameworks as Lewis-acid catalysts.