Humanoid robot 'imagines' nightmare AI scenario