These massive, track-mounted vehicles, which use a diesel generator to power electric motors and move rail cars carrying cargo or passengers, are major polluters, responsible for a growing share of the emissions that increase cancer risk, shorten lives and worsen smog across California.