Modeling of the expansion of laser-evaporated matter in argon, helium and nitrogen and the condensation of clusters