A thermodynamic comparison of external and internal exhaust gas dilution for high-efficiency internal combustion engines