Modulated rf discharges as an effective tool for selecting excited species