Elon Musk said that Tesla could one day reach a value of $30 trillion thanks to artificial intelligence and robotics.