The leadership change marks the end of an era at one of the world's most iconic companies, just as rivals bet on products ​that use AI to loosen Apple's grip on the consumer ​electronics market