The role of attention in the occurrence of the affordance effect