An Analysis of Machine Ethics from the Perspective of Autonomy