Apple is eclipsing Samsung as the best smartphone vendor for the first time in four years, Gartner says