Temperature Dependence of the Spectral Function through the Peierls Transition in Quasi-One-Dimensional Compounds