'Godfather of AI' resigns from Google, warns of the dangers of AI