Local heat flux measurement technique for internal combustion engines