Optimization of power and efficiency for an irreversible Diesel heat engine