Solar sources of the interplanetary magnetic field and solar wind