Fabrication and characterization of nanostructured porous silicon-silver composite layers by cyclic deposition: dip-coating vs spin-coating