Changing Core Machinery to Improve Environmental Friendliness of Trams