Understanding the thermodynamic inefficiencies in combustion processes