Path-independent integrals in fracture dynamics using auxiliary fields