Design of nanosized structures in sol-gel derived porous solids. Applications in catalyst and inorganic membrane preparation