Thermal cracking simulation of functionally graded materials using the combined finite–discrete element method