Routine to numerically fit lattice GF to impurity GF