Automotive Engine Modelling for Real-Time Control Using an Object-Oriented Simulation Library