A new approach to constructing Green's functions and integral solutions in thermoelasticity