Electron beam and magnetic field mapping techniques used to determine field errors in the ATF torsatron