As Apple competes with OpenAI and Google, five executives are shaping its A.I. strategy across software, hardware and services.