Optimized inkjet-printed silver nanoparticle films: theoretical and experimental investigations