Poland striker Robert Lewandowski scored twice as Borussia Dortmund thrashed Ajax 4-1 to progress as group winners.