Investigation of NbNx thin films and nanoparticles grown by pulsed laser deposition and thermal diffusion