Apple sells $46 billion worth of iPhones over the summer as AI helps end slump