Two Chinese tech giants forge AI alliance with eye on Apple