Lewis Hamilton said he had achieved his "dream" of emulating Michael Schumacher after claiming his first pole position for Ferrari at the Mexico City Grand Prix.