Apple to expand R&D presence in China as iPhone loses shine