Comparative study of Transformer- and LSTM-based machine learning methods for transient thermal field reconstruction