Apple partners with Alibaba amid declining sales in China