A relaxation technique for evaluating stress intensity factors by the finite element method