Influence of temperature inhomogeneities on knocking combustion