Catalytic polymer reactor with “self-sorting” domains for hierarchical catalysis