Top-Down Control of Visual Attention: A Rational Account