Optical CO2 Gas Sensing Based on TiO2 Thin Films of Diverse Thickness Decorated with Silver Nanoparticles