Spontaneous charging of nanocrystals during their formation in a supersaturated vapor