Apple sales beat Wall Street's expectations despite a lag in China