Researchers turn robots into 'weaponised spies'