Beyond optical enhancement due to embedded metal nanoparticles in thin-film solar cells