Artificial intelligence companies are spending billions on chips and infrastructure. Researchers think optical computing could help.