Simulation of mechanical and thermodynamic performances of a ship propulsion plant in transient conditions