Neural mechanisms of foraging