Hamilton bounces back with pole position