Collision effects in velocity-selective optical pumping of sodium