Analytical and numerical solutions for thick beams with thermoelastic damping