Hamilton takes pole for home British GP