Apple sells fewer iPhones than expected, sees China weakness