Apple is working on a chip to power artificial intelligence in future gadgets, including the iPhone