Apple tops Samsung for first time in global smartphone shipments