An attentional mechanism in the analysis of spatial frequency