Au and Pt nanoparticles effects on the optical and electrical gas sensing properties of sol-gel-based ZnO thin-film sensors