Locomotive manufacturer, union reach tentative deal to end 2-month strike