Stav dette: A legal theory for autonomous artificial agents