Computation of stress intensity factor in functionally graded plates under thermal shock