Precise mapping of the magnetic field in the CMS barrel yoke using cosmic rays