Derivative expansion of the heat kernel at finite temperature