Sol–gel derived films in meso-porous matrices: porous silicon, anodic alumina and artificial opals