Calculation of stress intensity factors by sensitivity analysis with respect to change of boundary conditions