Chief executive Brian Niccol explains why he thinks AI will help the coffee giant regain its buzz.