Analysis of metallic nanoparticles embedded in thin film semiconductors for optoelectronic applications