Rosberg captures pole for home race as teammate Hamilton crashes out