Optimal structure of light trapping in thin-film solar cells: dielectric nanoparticles or multilayer antireflection coatings?