Using microporous polymers and inorganic nanomaterials to direct heterogeneous catalysis