Automated Vehicles and the Trolley Problem