Accurate magnetic flux measurements in electromagnetic rail launchers