Robots should be equipped with an ethical black box