Tuning electronic transport in cobalt-filled carbon nanotubes using magnetic fields