Eye movements during visual search: the costs of choosing the optimal path