Physicist Max Tegmark on the promise and pitfalls of artificial intelligence