Multicomponent macroporous materials with a controlled architecture