Dynamics of attentional and oculomotor orienting in visual foraging tasks