On the use of the weight function approach to study fatigue crack growth in cast iron components