Template synthesis of 3D-structured macroporous oxides and hierarchical zeolites