The large-scale solar magnetic field