Rosberg bests teammate Hamilton for Bahrain F1 pole