An evaluation of the stress intensity factor in functionally graded materials