Humidity sensor based on silver nanoparticles embedded in a polymeric coating