Apple sells more iPhones than expected, shares jump after hours