Apple Defies Smartphone Slump as iPhone 17 Tops Q2 Sales