Infall of planetesimals onto growing giant planets: onset of runaway gas accretion and metallicity of their gas envelopes — arXiv2