One- and Two-Dimensional Analytical Solutions of Thermal Stress for Bimodular Functionally Graded Beams under Arbitrary Temperature Rise Modes