Xiaomi overtakes Apple as 3rd-largest smartphone maker