Rewards teach visual selective attention