A thermal stress analysis of functionally graded beam structures by hierarchical finite elements