Hamilton edges Rosberg to capture pole for F1 Spanish Grand Prix