Simulation of aerosol formation due to rapid cooling of multispecies vapors