Diesel–mechanical locomotive