The large-scale magnetic field of the eccentric pre-main-sequence binary system V1878 Ori