A comparative study of two different approaches for the incorporation of silver nanoparticles into layer-by-layer films