A reinforcement-learning model of top-down attention based on a potential-action map