An ethicist offers a framework for incorporating ethical and legal constraints into autonomous and AI weapons