Nanoparticles and polarons: active centers in thin film sensor devices