AT&T sells 2.4M iPhone 3Gs in 3Q, but margins suffer