Statistical learning of target selection and distractor filtering