Experimental determination of magnetic field correction factors for ionization chambers in parallel and perpendicular orientations