Android and Apple smartphones gain market share globally