A Control-oriented Library for the Simulation of Automotive Diesel Engines