Experts have warned that robots could wipe out the human race with the power of artificial intelligence.