Population switching between vibrational levels in molecular beams