Artificial intelligence with metasurfaces: from intelligent design to intelligent computing | Synapse