Numerical and Analytical Approach of Thermo-Mechanical Stresses in FGM Beams