Effect of a gas on the ejection of particles from the free surface of a sample subjected to a shock wave with various intensities