Performance of a fast digital integrator in on-field magnetic measurements for particle accelerators