Apple spent big on AI and with iPhone 16 it's paying off, analyst says