On the trace of Schrödinger heat kernels and regularity of potentials