Google wrote a ‘Robot Constitution’ to make sure its new AI droids won’t kill us