Computer simulations of the condensation of nanoparticles from the gas phase