Evaluation of Mechanical Losses and Analysis of the Influence of EGR and Turbocharger Control on Heat Release Rate in an Automotive Diesel Engine