A 2019 email from Microsoft’s CTO to CEO Satya Nadella and Bill Gates shows how spooked the company was by its AI rivals Google and OpenAI