Smartphones outsell feature phones for first time in Q2, Gartner says