The Role of Ethics in the Design and Regulation of Autonomous Vehicles