Tim Cook visits China after Apple pulls app used to track Hong Kong police