Determination of weight functions from reference stress intensity factors