Inverse laser ablation: formation and chemistry of nanoparticles from gaseous precursors