Photosensitive structures based on porous silicon