Europe is taking unprecedented steps to phase out gasoline and diesel cars and bring an end to the almost 150-year-long era of the internal combustion engine.