Pol Espargaro took his first Moto2 pole position in qualifying for the British Grand Prix at Silverstone.