Calculation of approximate weight functions in fracture mechanics by FEM