Artificial intelligence and nanotechnology 'threaten civilisation'