The ‘godfather of artificial intelligence’ on ‘the only hope’ for humanity, why China has an advantage — and when machines will outstrip us