Apple shares have rallied around 36% from April amid optimism that AI will drive consumers to upgrade