Evolution of two stellar populations in globular clusters II. Effects of primordial gas expulsion